<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  xmlns:msxsl="urn:schemas-microsoft-com:xslt" version="1.0">
   <xsl:output method="html" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>

<xsl:variable name="publishedDate"  select="substring(/rss/channel/pubDate,0,8)"/>
<xsl:template match="/">
<xsl:element name="html">
	<xsl:value-of select="/rss/channel/title"/> - <xsl:value-of select="substring(/rss/channel/pubDate,0,17)"/>
	<xsl:apply-templates select="rss/channel"/>
</xsl:element>
</xsl:template>
<xsl:template match="channel">
   <xsl:apply-templates select='item'/>
</xsl:template>


<xsl:template match="item">
	<xsl:variable name="itemDate"  select="substring(pubDate,0,8)"/>
	<xsl:if test="$itemDate = $publishedDate">
		<xsl:call-template name="outputContent"/>
	</xsl:if>
</xsl:template>
<xsl:template name="outputContent">
	<xsl:choose>
		<xsl:when test="pubDate">
			<xsl:value-of select="pubDate" disable-output-escaping="yes"/>
		</xsl:when>
	</xsl:choose>
</xsl:template>
</xsl:stylesheet>
